package ${artifactId};

import com.ahccc.data.dao.jpa.GenericDaoImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
* @copyright:${copyright}
* @Author:${author}
* @Date:${datetime}
* @Description:
*/
@SpringBootApplication
@EnableEurekaClient
@Configuration
@ComponentScan(basePackages={"${artifactId}","com.ahccc.data"})
@EnableJpaRepositories(basePackages = {"${artifactId}.repository"},repositoryBaseClass = GenericDaoImpl.class)
@EntityScan("${artifactId}.model")
@EnableConfigurationProperties({})
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
